﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using WpfApplication2.UserControls;
using WpfApplication2.SindicatoWebService;
using WpfApplication2.ViewModels.Afiliado;

namespace WpfApplication2.Views.Afiliado
{
    /// <summary>
    /// Interaction logic for ConsultaAfiliado.xaml
    /// </summary>
    public partial class ConsultarAfiliado : Page
    {
        private ConsultarAfiliadoViewModel context
        {
            get
            {
                return (ConsultarAfiliadoViewModel)DataContext;
            }
        }

        public ModalDialog modalDialog
        {
            get;
            set;
        }
        public Frame ContainerFrame
        {
            get;
            set;
        }

        public ConsultarAfiliado(Frame frame, ModalDialog modal, AfiliadoDTO afiliado)
        {
            InitializeComponent();
            DataContext = new ConsultarAfiliadoViewModel(frame, modal, afiliado);
            ContainerFrame = frame;
            modalDialog = modal;
        }
    }
}
